﻿namespace SOEI.Solution.EntityFrameworkCore.Seed.Customized
{
    public class InitialCustomizedDbBuilder
    {
        private readonly SolutionDbContext _context;

        public InitialCustomizedDbBuilder(SolutionDbContext context)
        {
            _context = context;
        }

        public void Create()
        {
            new DefaultRoleCreator(_context).Create();
            _context.SaveChanges();
        }
    }
}
